package com.czy.feign.cilent;

import com.czy.feign.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author czy
 * @create 2018-04-15 22:30
 **/
@FeignClient(name = "movie-service",fallbackFactory = MovieClientFallbackFactory.class)
public interface MovieClientFactory
{
	@GetMapping("/all")
	public List<User> findUserAll();
}

